package com.interview.rtc.aigc.utils;

// cd java/src/main/java/io/rtc && javac *.java
// cd java/src/main/java && java io.rtc.AccessTokenTest
class AccessTokenTest {

    public static void main(String[] args) {
       AccessToken token = new AccessToken("67fdf33c4da74801856c5b0c", "303fef39ed5245aaa00484f6399905a7", "Room-0499F3D2", "7_User123");
       token.ExpireTime(Utils.getTimestamp() + 3600);
       token.AddPrivilege(AccessToken.Privileges.PrivSubscribeStream, 0);
       token.AddPrivilege(AccessToken.Privileges.PrivPublishStream, Utils.getTimestamp() + 3600);


       String s = token.Serialize();

        System.out.println(s);

    }
}
